import pyautogui
from pynput.keyboard import Controller


# 不能用pyautogui，輸入不了中文
def text_input(text):
    kb = Controller()
    kb.type(text)


def keyboard(keys: str):
    press_list = keys.split(',')
    for item in press_list:
        if '+' in item:
            press_combine = item.split('+')
            pyautogui.hotkey(*press_combine)
        else:
            pyautogui.press(item)
